<?php
/**
 * 竞标验证器
 */

namespace app\common\validate;

class ProjectLogValidate extends CommonBaseValidate
{
    protected $rule = [
            'project_id|项目' => 'require',
    'user_id|公司' => 'require',
    'detail|报价' => 'require',
    'status|状态' => 'require',

    ];

    protected $message = [
            'project_id.required' => '项目不能为空',
    'user_id.required' => '公司不能为空',
    'detail.required' => '报价不能为空',
    'status.required' => '状态不能为空',

    ];

    protected $scene = [
        'admin_add'     => ['project_id', 'user_id', 'detail', 'status', ],
        'admin_edit'    => ['id', 'project_id', 'user_id', 'detail', 'status', ],
        'admin_del'     => ['id', ],
        'admin_disable' => ['id', ],
        'admin_enable'  => ['id', ],
        'api_add'       => ['project_id', 'user_id', 'detail', 'status', ],
        'api_info'      => ['id', ],
        'api_edit'      => ['id', 'project_id', 'user_id', 'detail', 'status', ],
        'api_del'       => ['id', ],
        'api_disable'   => ['id', ],
        'api_enable'    => ['id', ],
    ];
}
